const {selectProject} = require('../utils/project');
const {selectEnv} = require('../utils/env');
const {selectBranch} = require('../utils/git');

async function publish(options) {
  if (!options.project) {
    options.project = await selectProject();
  }

  if (!options.env) {
    options.env = await selectEnv(false);
  }

  if (!options.branch) {
    options.branch = await selectBranch();
  }
}

exports.publish = publish;
